<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sbs" uri="http://org.cdtstudio.web.spring/tags/sbs"%>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href='<spring:url value="/resources/images/favicon.ico"/>' />
<link href='<spring:url value="/resources/bootstrap/css/bootstrap.min.css"/>' rel="stylesheet" />
<link href='<spring:url value="/resources/css/full.css"/>' rel="stylesheet" />
<title>外出/加班审核-考勤系统</title>
<script type="text/javascript" src='<spring:url value="/resources/js/3rd/require.min.js" />'
	data-main='<spring:url value="/resources/js/sign/sign.js"/>'></script>
</head>
<body>
	<div class="container">
		<jsp:include page="../topMenu.jsp" />
		<div class="panel panel-default">
			<div class="panel-heading">外出/加班申请</div>
			<div class="table-responsive">
				<table class="table table-hover table-condensed" style="border-color: black;">
					<colgroup>
						<col class="col-xs-1">
						<col class="col-xs-7">
					</colgroup>
					<tbody>
						<tr>
							<th scope="row">工号</th>
							<td><c:out value="${apply.uid}" /></td>
						</tr>
						<tr>
							<th scope="row">类型</th>
							<td><c:out value="${leaveTypes[apply.leaveType]}" /></td>
						</tr>
						<tr>
							<th scope="row">开始时间</th>
							<td>${apply.fromDate}&nbsp;${apply.fromTime}</td>
						</tr>
						<tr>
							<th scope="row">结束时间</th>
							<td>${apply.toDate}&nbsp;${apply.toTime}</td>
						</tr>
						<tr>
							<th scope="row">原因</th>
							<td><c:out value="${apply.reason}" /></td>
						</tr>
						<tr>
							<th scope="row">申请时间</th>
							<td>${apply.applyTime}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div class="panel panel-default">
			<div class="panel-heading">审核</div>
			<div class="panel-body">
				<form:form modelAttribute="approval" method="post" cssClass="form-horizontal">
					<div class="form-group">
						<sbs:radiobuttons path="status" items="${approveStatus}" labelClass="radio-inline" />
					</div>
					<t:bootstrapInput name="suggestion" id="suggestion" label="审核意见" placeHolder="请说明请假事由" />
					<div class="form-group">
						<button type="submit" class="btn btn-danger">提交申请</button>
						<a href='javascript:history.back()' class="btn btn-default">返回</a>
						<form:errors path="*" cssClass="text-danger" />
					</div>
				</form:form>
			</div>
		</div>
	</div>
</body>
</html>